<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title><s:property value='%{getText("area_title")}' /></title>
		<link href="/SCMDB/style/main.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
		<%@ include file="../commonPage/message.jsp"%>
	</head>
	<body>
		<h2>
			<s:property value='%{getText("current_position")}' />${parentMenu}>>${currentMenu}
		</h2>
		<div class="main">
			<s:form action="areaAction!findAll.action" method="post"
				theme="simple">
				<fieldset class="fieldSearch">
					<legend>
						<s:property value='%{getText("area_legend")}' />
					</legend>
					<table border="0" cellspacing="0" cellpadding="0">
				<tr>
				<td align="right" class="p_8"><s:property value='%{getText("area_td1")}' /></td><td><s:textfield name="name" cssClass="sInput"/></td>
				<td align="right" class="p_14"><s:property value='%{getText("area_td2")}' /></td><td><s:select headerKey="" headerValue="全部" name="type"
						list="#session.areaListType" listKey="key" listValue="value" /></td>
				<td align="right" class="p_14" colspan="2"><s:submit value="查询" cssClass="bSearch" /></td>
				</tr>
				</table>
				</fieldset>
				<p class="pEdit">
					<input name="set" type="button" class="bSet" value="设置" onclick="window.location.href='/SCMDB/areaAction!initArea.action'" />
					<%=request.getAttribute("button") %>
				</p>
				<table border="0" cellpadding="1" cellspacing="1" class="tableList">
					<thead>
						<tr>
							<th width="25">
								<input type="checkbox" name="checkbox" value="checkbox"
									onclick="Super.checkAll(this.checked)" title="全选/取消" />
							</th>
							<th class="number">
								<s:property value='%{getText("area_th1")}' />
							</th>
							<th width="25%">
								<s:property value='%{getText("area_th2")}' />
							</th>
							<th width="25%">
								<s:property value='%{getText("area_th3")}' />
							</th>
							<th width="45%">
								<s:property value='%{getText("area_th4")}' />
							</th><!--
							<th width="12%">
								<s:property value='%{getText("area_th5")}' />
							</th>
							<th width="12%">
								<s:property value='%{getText("area_th6")}' />
							</th>
						--></tr>
					</thead>

					<tbody>
						<s:iterator id="pageBean" status="u"
							value="#session.areaBean.list">
							<tr>
								<td>
									<input type="checkbox" name="checkbox" value="${pageBean.id}" />
								</td>
								<td class="number">
									${entity.index+u.index}
								</td>
								<td>
									${pageBean.name}
								</td>
								<td>
									<s:property value="#session.areaListType.get(#pageBean.type)"/>
								</td>
								<td>
									${pageBean.readers}
								</td><!--
								<td>
									${pageBean.empCount}
								</td>
								<td>
									${pageBean.timeLength}
								</td>
							--></tr>
						</s:iterator>
						<tr>
							<td colspan="9" class="turnPage">
								<jsp:include flush="true" page="../commonPage/page.jsp">
									<jsp:param name="entity" value="entity" />
								</jsp:include>
							</td>
						</tr>
					</tbody>
				</table>
			</s:form>
		</div>
	</body>
</html>

